package com.example.shop.generator.dao;


import com.example.shop.generator.entity.DataBase;
import com.example.shop.generator.entity.Table;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by an on 2016/9/23.
 */
@Mapper
public interface TableDao {

    /**
     * 查询表单信息
     * @param tableName
     * @return
     */
    List<Table> findByName(@Param("tableName")String tableName);

    /**
     * 查询数据库全部表
     * @return
     */
    List<DataBase> selectDataBase();

}
